/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-01-18 10:19:15
 * @LastEditTime: 2022-01-21 11:21:19
 */
import toolMgr from '@/biz/base/tool.js'
import dt from '@dt/dt'
import ruleOpt from '@/biz/option/rule.js'
import channelMgr from '@/biz/channel/channel'

let _this = null

function options(vm) {
  _this = vm

  let arr = [{
    title: '线索渠道',
    placeholder: '请选择',
    key: 'clueChannelId',
    select: {
      options: channelMgr.importChannelData().clueChannelList
    },
    change: (val) => {},
    rules: [
      ruleOpt.required('线索渠道不能为空')
    ]
  }, {
    title: '案场渠道',
    placeholder: '请选择',
    key: 'channelIds',
    cascader: {
      options: channelMgr.importChannelData().buildingChannelList
    },
    change: (val) => {},
    rules: [
      ruleOpt.required('案场渠道不能为空', 'array')
    ]
  }]

  return arr
}

export default {
  options
}